package cn.ssm.pojo;

import java.util.Date;

/**
 * 电影表
 * 
 * @author 朱海松
 *
 */
public class Movie {
	private int id;// 电影编号
	private int movieTypeId;// 电影类型编号
	private int movieIsActiveId;// 电影状态编号 默认2、即将上映
	private String movieName;// 电影名
	private String protagonist;// 主演
	private String director;// 导演
	private int duration;// 电影时长
	private String description;// 剧情描述
	private String poster;// 封面海报
	private String releaseDate;// 上映时间
	private String state;// 国家地区
	private String issuingCompany;// 发行公司
	
	//新增项
	private String movieTypeName;//电影类型
	private Hall hall;
	private Schedule schedule;
	private String movieIsActiveName;//电影上映状态

	public Movie(int id, int movieTypeId, int movieIsActiveId, String movieName, String protagonist, String director,
			int duration, String description, String poster, String releaseDate, String state, String issuingCompany,
			String movieTypeName, Hall hall, Schedule schedule, String movieIsActiveName) {
		super();
		this.id = id;
		this.movieTypeId = movieTypeId;
		this.movieIsActiveId = movieIsActiveId;
		this.movieName = movieName;
		this.protagonist = protagonist;
		this.director = director;
		this.duration = duration;
		this.description = description;
		this.poster = poster;
		this.releaseDate = releaseDate;
		this.state = state;
		this.issuingCompany = issuingCompany;
		this.movieTypeName = movieTypeName;
		this.hall = hall;
		this.schedule = schedule;
		this.movieIsActiveName = movieIsActiveName;
	}

	public String getMovieIsActiveName() {
		return movieIsActiveName;
	}

	public void setMovieIsActiveName(String movieIsActiveName) {
		this.movieIsActiveName = movieIsActiveName;
	}

	public Movie(int id, int movieTypeId, int movieIsActiveId, String movieName, String protagonist, String director,
			int duration, String description, String poster, String releaseDate, String state, String issuingCompany,
			String movieTypeName, Hall hall, Schedule schedule) {
		super();
		this.id = id;
		this.movieTypeId = movieTypeId;
		this.movieIsActiveId = movieIsActiveId;
		this.movieName = movieName;
		this.protagonist = protagonist;
		this.director = director;
		this.duration = duration;
		this.description = description;
		this.poster = poster;
		this.releaseDate = releaseDate;
		this.state = state;
		this.issuingCompany = issuingCompany;
		this.movieTypeName = movieTypeName;
		this.hall = hall;
		this.schedule = schedule;
	}

	public Hall getHall() {
		return hall;
	}

	public void setHall(Hall hall) {
		this.hall = hall;
	}

	public Schedule getSchedule() {
		return schedule;
	}

	public void setSchedule(Schedule schedule) {
		this.schedule = schedule;
	}

	public String getMovieTypeName() {
		return movieTypeName;
	}

	public void setMovieTypeName(String movieTypeName) {
		this.movieTypeName = movieTypeName;
	}

	public Movie() {

	}

	public Movie(int id, int movieTypeId, int movieIsActiveId, String movieName, String protagonist, String director,
			int duration, String description, String poster, String releaseDate, String state, String issuingCompany) {
		super();
		this.id = id;
		this.movieTypeId = movieTypeId;
		this.movieIsActiveId = movieIsActiveId;
		this.movieName = movieName;
		this.protagonist = protagonist;
		this.director = director;
		this.duration = duration;
		this.description = description;
		this.poster = poster;
		this.releaseDate = releaseDate;
		this.state = state;
		this.issuingCompany = issuingCompany;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getMovieTypeId() {
		return movieTypeId;
	}

	public void setMovieTypeId(int movieTypeId) {
		this.movieTypeId = movieTypeId;
	}

	public int getMovieIsActiveId() {
		return movieIsActiveId;
	}

	public void setMovieIsActiveId(int movieIsActiveId) {
		this.movieIsActiveId = movieIsActiveId;
	}

	public String getMovieName() {
		return movieName;
	}

	public void setMovieName(String movieName) {
		this.movieName = movieName;
	}

	public String getProtagonist() {
		return protagonist;
	}

	public void setProtagonist(String protagonist) {
		this.protagonist = protagonist;
	}

	public String getDirector() {
		return director;
	}

	public void setDirector(String director) {
		this.director = director;
	}

	public int getDuration() {
		return duration;
	}

	public void setDuration(int duration) {
		this.duration = duration;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getPoster() {
		return poster;
	}

	public void setPoster(String poster) {
		this.poster = poster;
	}

	public String getReleaseDate() {
		return releaseDate;
	}

	public void setReleaseDate(String releaseDate) {
		this.releaseDate = releaseDate;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getIssuingCompany() {
		return issuingCompany;
	}

	public void setIssuingCompany(String issuingCompany) {
		this.issuingCompany = issuingCompany;
	}

	@Override
	public String toString() {
		return "Movie [id=" + id + ", movieTypeId=" + movieTypeId + ", movieIsActiveId=" + movieIsActiveId
				+ ", movieName=" + movieName + ", protagonist=" + protagonist + ", director=" + director + ", duration="
				+ duration + ", description=" + description + ", poster=" + poster + ", releaseDate=" + releaseDate
				+ ", state=" + state + ", issuingCompany=" + issuingCompany + "]";
	}

}
